﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Division: Calculate
    {
        public override void DisplayResult()
        {
            if (this.a > this.b)
            {
                Console.WriteLine(this.a + "/" + this.b + "=" + (sum = this.a / this.b));
            }
            else 
            {
                Console.WriteLine(this.b + "/" + this.a + "=" + (sum = this.b / this.a));
            }
        }
    }
}
